// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import Router from './router'
//引入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//引入vuex
import Store from './store'
//引入axios
import axios from 'axios'
// axios 配置
axios.defaults.timeout = 5000; //请求超时的时间设定
axios.defaults.headers.post['Content-Type'] = 'application/json';//设置请求格式
axios.defaults.baseURL = 'http://localhost:8088';  //axios默认的请求地址
Vue.prototype.$axios = axios;

Vue.use(ElementUI, { size: 'small', zIndex: 3000 });

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  store: Store,
  router: Router, 
  components: { App },
  template: '<App/>'
})
